﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CtrlYearFundsMX.ascx.cs"
    Inherits="Thksoft.UserCotrols.CtrlYearFundsMX" %>
<link href="../../CSS/Main.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script type="text/javascript">
    function PrintApplyBill() {
        var va = document.getElementById("<%=this.hidId.ClientID %>").value;

        window.showModalDialog("../Print/PrintMonth.aspx?PID=" + va, "", "dialogHeight:768px; dialogWidth:1024px;");

    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td valign="top">

            <div id="div" style="width: 98%; border: 0;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="text-align: center; font-size: 16px; font-weight: bold; height: 30px;">
                            <asp:Label ID="lblyear" runat="server" />
                            年资金计划
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="float: left; width: 100%;">
                                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                                    <tr>
                                        <td style="width: 100px; padding-right: 3px; text-align: right;">填报单位：
                                        </td>
                                        <td style="text-align: left; padding-left: 3px;">
                                            <asp:Label ID="lbldw" runat="server" />
                                        </td>
                                        <td></td>
                                        <td style="width: 100px; color: red;">金额单位：万元
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <style type="text/css">
                                td.right {
                                    text-align: right;
                                    padding-right: 5px;
                                }

                                td.left {
                                    text-align: left;
                                    padding-left: 10px;
                                }
                            </style>
                            <asp:GridView ID="gvMonthFunds" runat="server" Width="100%" CssClass="cont_list"
                                AutoGenerateColumns="False" OnRowDataBound="gvMonthFunds_RowDataBound">
                                <Columns>
                                    <asp:TemplateField HeaderText="编号" HeaderStyle-Width="10%">
                                        <ItemTemplate>
                                            <asp:Label ID="lblProID" runat="server" Text='<%#Eval("n_proid") %>'></asp:Label>
                                            <asp:Label ID="lbltype" runat="server" Text='<%#Eval("n_type") %>' Visible="false"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="c_proname" HeaderText="项目名称" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="left" />
                                    <asp:TemplateField HeaderText="年度资金计划审批金额" HeaderStyle-HorizontalAlign="Center"
                                        ItemStyle-Width="100px" ItemStyle-CssClass="right">
                                        <ItemTemplate>
                                            <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("N_AMOUNT")))%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="年度资金计划周累计审批金额" HeaderStyle-HorizontalAlign="Center"
                                        ItemStyle-Width="100px" ItemStyle-CssClass="right">
                                        <ItemTemplate>
                                            <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("N_AMOUNT_WEEK")))%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="年度资金计划周累计已支付金额" HeaderStyle-HorizontalAlign="Center"
                                        ItemStyle-Width="100px" ItemStyle-CssClass="right">
                                        <ItemTemplate>
                                            <%#Utility.Helper.HtmlHelper.QyFormat(Convert.ToDecimal(Eval("N_USEAMOUNT_WEEK")))%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="n_amountProbability" HeaderText="流入(出)率" HeaderStyle-HorizontalAlign="Center"
                                        ItemStyle-Width="80px" ItemStyle-CssClass="right" />
                                    <asp:BoundField DataField="c_remark" HeaderText="备注" ItemStyle-CssClass="left" />
                                </Columns>
                                <EmptyDataTemplate>
                                    没有你所查询的数据
                                </EmptyDataTemplate>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: left; padding-left: 5px; height: 30px;">编制依据及事由：
                            <asp:Label ID="lblBzyj" runat="server" />
                            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 申请人：<asp:Label ID="lblUser" runat="server" />
                            &nbsp;&nbsp;&nbsp; &nbsp;申请时间：
                            <asp:Label ID="lblTime" runat="server" /><input type="hidden" runat="server" id="Hidden1" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center;">
                            <input type="hidden" runat="server" id="hidId" />
                        </td>
                    </tr>
                </table>
            </div>
        </td>
    </tr>
</table>